# Maintainer: Dzmitry Sankouski <dsankouski@gmail.com>

pkgname=firmware-samsung-sdm845
pkgver=1
pkgrel=0
pkgdesc="Firmware for Samsung Galaxy S9 series phones based on SDM845 SoC"
url="https://github.com/dsankouski/firmware-samsung-sdm845"
arch="aarch64"
depends="linux-firmware-qcom"
license="proprietary"
options="!check !strip !archcheck !tracedeps textrels pmb:cross-native"

_version="ae59638aa84bdebf8f6cfa20eb0fa6351a435e9b"

source="$pkgname-$_version.tar.gz::$url/archive/$_version.tar.gz
	firmware.files
"

package() {
	mkdir -p "$pkgdir/lib/firmware/qcom/sdm845/starqltechn"
	while IFS="" read -r _i || [ -n "$_i" ]; do
		echo "$srcdir/$pkgname-$_version/$_i $pkgdir/$_i"
		install -Dm644 "$srcdir/$pkgname-$_version/$_i" "$pkgdir/$_i"
	done < "$srcdir/firmware.files"
}

sha512sums="
272b7f30ecea2d9ba0e867fed61f8e7eece721a8a1272fc932a5f9a66b77dfa51259f13d45429569ba636179f237a82a43dc33935aa39cd3c7114a18f0299ddb  firmware-samsung-sdm845-ae59638aa84bdebf8f6cfa20eb0fa6351a435e9b.tar.gz
8a89dd6d669aa690602960268c366e0ae273cd4919499fe4863a792b8d7118a95ee818c2548454c37f7b2badfe1bc2ec9b86b7952111b6c884a875479db87e42  firmware.files
"
